package cn.edu.zzuli.nothinglink.service;

import cn.edu.zzuli.nothinglink.entity.R;
import cn.edu.zzuli.nothinglink.entity.Work;
import cn.edu.zzuli.nothinglink.vo.WorkInfoVo;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author suzyyy
 * @since 2021-04-22
 */
public interface WorkService extends IService<Work> {

    R createWork(WorkInfoVo vo, Integer uId);

    R getWorksInTheCourse(Integer courseId);

    Work getWorkInfoById(Integer workId);

    R updateTheWork(WorkInfoVo vo);

    R getWorksInMyClass(Integer stuId,  String type);

    R getWorksInCourseByCourseName(String courseName);

    R submitWorkRecord(Integer stuId, JSONObject json);

    R getWorkSubmitRecordByWorkId(Integer workId);
}
